﻿namespace MetaVideoEditorEvolved.Entity
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Linq;
    using System.Text;

    public class MveAction : INotifyPropertyChanged
    {
        private ActionStatus status = ActionStatus.Waiting;

        public ActionStatus Status
        {
            get
            {
                return this.status;
            }

            set
            {
                this.status = value;
                this.OnNotifyPropertyChanged("Status");
            }
        }

        public string Message
        {
            get;
            set;
        }

        public event PropertyChangedEventHandler PropertyChanged;

        protected void OnNotifyPropertyChanged(string propertyName)
        {
            if (this.PropertyChanged != null)
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}
